package com.njtoyo.taxi.admin.service.business;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.rest.presenter.business.CompanyFeeRatePresenter;
import com.njtoyo.taxi.admin.rest.presenter.business.CompanyListPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.company.*;
import com.njtoyo.taxi.entity.backend.AdminUser;
import com.taxi.entity.common.RestResult;

import java.util.List;

public interface CompanyService {
    RestResult getAll(AdminUser adminUser, CompanyQueryWrapper wrapper);

    RestResult<Page<CompanyListPresenter>> companies(AdminUser adminUser, CompanyListWrapper wrapper);

    RestResult addCompany(CompanyAddWrtapper wrapper);

    RestResult updateCompanyBasic(Long id, CompanyUpdateWrapper wrapper);

    RestResult<List<CompanyFeeRatePresenter>> companyFreeRateList(Long companyId);

    RestResult companFreeRateupdate(Long companyId, CompanFreeRateWrapper wrapper);


    RestResult infoServiceById(Integer current, Integer size, Integer companyId,String selectStartDate,String selectEndDate);
}
